#ifndef __KEYS_H__
#define __KEYS_H__


class Keys 
{
public:
	Keys();
	void key_console( int key );
	void key_message( int key );
	int key_string_to_keynum( char *str );
	char* key_keynum_to_string( int keynum );
	void key_setbinding( int keynum, char *binding );
	void key_unbinding( int keynum, char *binding );
	void key_event( int key, bool down, unsigned int time );
	void key_init( void );
	void key_write_bindings( FILE *f );
	void key_clear_states( void );
	void key_get( void );
private:
	char *keybindings[MAX_BINDINGS];
	int key_repeats[MAX_KEYS_REPEATS];
	char key;
};
